﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageIndex.aspx.cs"
    EnableEventValidation="false" Inherits="DutyReport_admin_ManageDutyReport"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
         <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
         <link rel="Stylesheet" type="text/css" href="../../Scripts/jquery.ui/css/start/jquery-ui.css" />
    <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery-ui.js"></script>

    <script type="text/javascript">
        $(function () {
            $(":text").autocomplete({
                source: "DutyUserList.aspx",
                minlength: 0,
                focus: function (event, ui) {
                    $(this).val(ui.item.label);
                    return false;
                }
            });
        });
    </script>

        <style type="text/css">
<!--
html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
-->
</style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">值班表管理</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">   
    <div style="height:20px;"></div>    
      <table width="96%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
        <tr align="center" bgcolor="#e4f1fd">
          <td colspan="5">
            <asp:DropDownList ID="year" runat="server" Width="56px" AutoPostBack="True">
                        <asp:ListItem>2009</asp:ListItem>
                        <asp:ListItem>2010</asp:ListItem>
                        <asp:ListItem>2011</asp:ListItem>
                        <asp:ListItem>2012</asp:ListItem>
                        <asp:ListItem>2013</asp:ListItem>
                        <asp:ListItem>2014</asp:ListItem>
                        <asp:ListItem>2015</asp:ListItem>
                        <asp:ListItem>2016</asp:ListItem>
                        <asp:ListItem>2017</asp:ListItem>
                        <asp:ListItem>2018</asp:ListItem>
                        <asp:ListItem>2019</asp:ListItem>
                        <asp:ListItem>2020</asp:ListItem>
                        <asp:ListItem>2021</asp:ListItem>
                        <asp:ListItem>2022</asp:ListItem>
                        <asp:ListItem>2023</asp:ListItem>
                        <asp:ListItem>2024</asp:ListItem>
                        <asp:ListItem>2025</asp:ListItem>
                        <asp:ListItem>2026</asp:ListItem>
                        <asp:ListItem>2027</asp:ListItem>
                        <asp:ListItem>2028</asp:ListItem>
                        <asp:ListItem>2029</asp:ListItem>
                        <asp:ListItem>2030</asp:ListItem>
                    </asp:DropDownList>
            年
            <asp:DropDownList ID="month" runat="server" Width="39px" AutoPostBack="True">
                        <asp:ListItem Value="1">1</asp:ListItem>
                        <asp:ListItem Value="2">2</asp:ListItem>
                        <asp:ListItem Value="3">3</asp:ListItem>
                        <asp:ListItem Value="4">4</asp:ListItem>
                        <asp:ListItem Value="5">5</asp:ListItem>
                        <asp:ListItem Value="6">6</asp:ListItem>
                        <asp:ListItem Value="7">7</asp:ListItem>
                        <asp:ListItem Value="8">8</asp:ListItem>
                        <asp:ListItem Value="9">9</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                    </asp:DropDownList>

            月          </td>
        </tr>
        <tr>
          <td colspan="2" rowspan="2" align="center">日期</td>
          <td colspan="2" align="center">值班人员</td>
          <td rowspan="2" align="center">带班领导</td>
        </tr>

        <tr>
          <td width="200" align="center">夜间</td>
          <td width="200" align="center">白天</td>
        </tr>
        <tr>
         <%
                if(nights != null && daytimes != null && fugles != null)
                {
                    for(int i = 0; i < daysArray.Length; i++)
                    { 
            %>
            <tr>
                <td width="25">
                    <%= i + 1%>
                </td>
                <td width="30">
                    <%= daysArray[i]%>
                </td>
                <td>
                    <input name="night" type="text" value="<%= nights[i] %>" />
                </td>
                <td>
                    <input name="daytime" type="text" value="<%= daytimes[i] %>" />
                </td>
                <td>
                    <input name="fugle" type="text" value="<%= fugles[i] %>" />
                </td>
            </tr>
            <%
                }
            }
            else
            %>
            <% 
                for(int i = 0; i < daysArray.Length; i++)
                { 
            %>
            <tr>
                <td width="25">
                    <%= i + 1 %>
                </td>
                <td width="30">
                    <%= daysArray[i] %>
                </td>
                <td>
                    <input type="text" name="night" />
                </td>
                <td>
                    <input name="daytime" type="text" />
                </td>
                <td>
                    <input name="fugle" type="text" />
                </td>
            </tr>
            <%
                }         
            %>
        </tr>
          <tr>
          <td colspan="5" align="center"><div class="disk_queding_top">
            <asp:Button ID="Button2" runat="server" OnClick="Button2_ServerClick" CssClass="tijiao_anniu" />
          </div>
            <div class="disk_queding_top"><input type="reset" name="button2" id="button2" value="" class="section_congzhi_button" /></div>
                <input id="hidMonth" runat="server" type="hidden"/>
                    <input id="hidYear" runat="server" type="hidden" />
            </td>
        </tr>
      </table>
    <div style="height:20px;"></div>
  </div>
</div>
    </form>
</body>
</html>
